<?php
if ($this->data) {
    foreach ($this->data as $data) {
        ?>
        <tr>
            <td class="center">
                <input type="radio" id="selPreMatricula" flag="<?php echo $this->flag ?>" name="selPreMatricula<?php echo $this->flag ?>" attr="<?php echo $data->getInPreTeste() ?>" value="<?php echo $data->getSqTurma()?>" >
            </td>
            <td class="center">
                <?php echo $data->getSqModalidadeProfessor()->getSqModalidade(); ?>
            </td>
            <td class="center">
                <?php echo $data->getCoTurma(); ?>
            </td>
            <td class="center">
                <?php  echo $data->getSqTurmaDia()->getDeDia();  ?>
            </td>
            <td class="center">
                <?php echo $data->getSqHorarioInicio()->getNoHorario()." as ".$data->getSqHorarioTermino()->getNoHorario(); ?>
            </td>
            <td class="center">
                <span class="badge <?php echo ($data->getInPreTeste() == 1) ? "badge-success" : "" ?>">
                    <?php echo ($data->getInPreTeste() == 1) ? "Sim" : "Não"; ?>
                </span>
            </td>
        </tr>
        <?php
    }
} else {
    ?>
    <tr>
        <td colspan="6">
            Nenhuma Turma Aberta para a modalidade Escolhida.
        </td>
    </tr>
    <?php
}
?>
